package com.itheima.oceanwikidemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author:Weizehui
 * @Data:2024/9/216:50
 */
@Controller
public class UserController {

    @RequestMapping("/hello")
    @ResponseBody
    public String toHello(){

        return "hello";
    }

    @RequestMapping("/hello2")
    @ResponseBody
    public String toHello2(String name){

        return "hello2" + name;
    }
}
